package com.edu.mapper;

import com.edu.entity.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.edu.entity.course.CourseWebVo;
import com.edu.entity.vo.CoursePublishVo;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author mxs
 * @since 2021-10-21
 */
public interface CourseMapper extends BaseMapper<Course> {
    /**
     * 根据课程id返回确认信息视图类
     *
     * @param courseId
     * @return
     */
    public CoursePublishVo getPublishCourseInfo(String courseId);

    boolean updateCourseId(String  courseId);

    /**
     * 获取课程详情页信息
     * @param courseId
     * @return
     */
    CourseWebVo getCourseInfo(String courseId);
}
